import fetch from "@/api";

function ucenterLogin(params: object): Promise<any> {
  return fetch({
    method: "POST",
    url: "ucenter/login",
    params,
    formdata: true, //是否formdata数据，默认json数据
    // hideLoading:true,//是否隐藏loading，默认有loading
    openResponese: true, //是否返回全部响应，默认返回响应的data对象
  });
}

function mockRequest1(params: object): Promise<any> {
  return fetch({
    method: "get",
    url: "ucenter/user/getLoginUser",
    params,
  });
}

export { ucenterLogin, mockRequest1 };
